Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIXED missing range check on MonthLengths array #157

Merged
merged 1 commit into from
Aug 27, 2018

Conversation

ynonp
Copy link
Contributor

@ynonp ynonp commented Aug 26, 2018

A missing range check on MonthLengths array caused strange results / crashes / infinite loop when running the app with wrong inputs.

For example on my laptop running:

$ ./hebcal 28 2018

Would enter an infinite loop

The added range check fixes the issue and treats invalid months as empty

@mjradwin mjradwin merged commit 99cd211 into hebcal:master Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants